You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After trying to identify why the empty program takes ~0.7s to run on my computer, I identified that the initialization of a state instance is the problem:
Specifically, the last line load_lib "std". This loads the almost 800 line file std.@, which has a lot of useful functions in it. Most of the file is composed of comments.
I don't know what the particular problem is. Is it tokenizing? Is it node traversal?
This issue serves as a note for myself.
A potential solution is to design a way to compile Attache files....
The text was updated successfully, but these errors were encountered:
Apparently the normal way to do it is ruby-prof (taken directly from repo):
RubyProf.start# ... code to profile ...result=RubyProf.stop# print a flat profile to textprinter=RubyProf::FlatPrinter.new(result)printer.print(STDOUT)
After trying to identify why the empty program takes ~0.7s to run on my computer, I identified that the initialization of a state instance is the problem:
Specifically, the last line
load_lib "std"
. This loads the almost 800 line filestd.@
, which has a lot of useful functions in it. Most of the file is composed of comments.I don't know what the particular problem is. Is it tokenizing? Is it node traversal?
This issue serves as a note for myself.
A potential solution is to design a way to compile Attache files....
The text was updated successfully, but these errors were encountered: