Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Mug Faster #1777

Closed
agureev opened this issue Jan 15, 2025 · 0 comments
Closed

Make Mug Faster #1777

agureev opened this issue Jan 15, 2025 · 0 comments
Assignees
Labels
nock Deals with the nock VM Environment (interpretation, jam, cue etc.)

Comments

@agureev
Copy link
Contributor

agureev commented Jan 15, 2025

customer: @mariari
performer:
deadline:
estimated:
started:
actual:
completed:
confirmed:
dependencies:

  • [ ]
    supersedes:

Mug is now disgustingly slow.

iex(11)> :timer.tc(fn -> for n <- 1..1000 do Noun.mug(Nock.Lib.rm_core()) end end)
warning: variable "n" is unused (if the variable is not meant to be used, prefix it with an underscore)
└─ iex:11

{11684066,
 [890358089, 890358089, 890358089, 890358089, 890358089, 890358089, 890358089,
  890358089, 890358089, 890358089, 890358089, 890358089, 890358089, 890358089,
  890358089, 890358089, 890358089, 890358089, 890358089, 890358089, 890358089,
  890358089, 890358089, 890358089, 890358089, 890358089, 890358089, 890358089,
  890358089, 890358089, 890358089, 890358089, 890358089, 890358089, 890358089,
  890358089, 890358089, 890358089, 890358089, 890358089, 890358089, 890358089,
  890358089, 890358089, 890358089, 890358089, 890358089, 890358089, ...]}
iex(12)> :timer.tc(fn -> for n <- 1..1000 do Nock.Lib.rm_core() |> Noun.abnormalize_noun |> :erlang.term_to_binary() |> Murmur.hash_x86_32(6_780_269) end end)
warning: variable "n" is unused (if the variable is not meant to be used, prefix it with an underscore)
└─ iex:12

{1193635,
 [3568102601, 3568102601, 3568102601, 3568102601, 3568102601, 3568102601,
  3568102601, 3568102601, 3568102601, 3568102601, 3568102601, 3568102601,
  3568102601, 3568102601, 3568102601, 3568102601, 3568102601, 3568102601,
  3568102601, 3568102601, 3568102601, 3568102601, 3568102601, 3568102601,
  3568102601, 3568102601, 3568102601, 3568102601, 3568102601, 3568102601,
  3568102601, 3568102601, 3568102601, 3568102601, 3568102601, 3568102601,
  3568102601, 3568102601, 3568102601, 3568102601, 3568102601, 3568102601,
  3568102601, 3568102601, 3568102601, 3568102601, 3568102601, 3568102601, ...]}
@agureev agureev added the nock Deals with the nock VM Environment (interpretation, jam, cue etc.) label Jan 15, 2025
@mariari mariari moved this from New Pending to Waiting For Merge in Skunks Issue Overview Jan 16, 2025
@agureev agureev self-assigned this Jan 27, 2025
@agureev agureev moved this from Waiting For Merge to Done in Skunks Issue Overview Mar 19, 2025
@agureev agureev closed this as completed by moving to Done in Skunks Issue Overview Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nock Deals with the nock VM Environment (interpretation, jam, cue etc.)
Projects
Status: Done
Development

No branches or pull requests

1 participant