Skip to content

How startup works in Nelua execution process #85

Answered by edubart
stefanos82 asked this question in Q&A
Discussion options

You must be logged in to vote

The compiler startup just load lua files, and check some disk files. What you are experience is probably something related to your OS, when you delete the folder probably the OS is invalidating files cache and when you startup again the OS need to recache the files. You could confirm this executing the following:

sudo sh -c "echo 3 > /proc/sys/vm/drop_caches"

For instance once the OS cache Nelua files, the startup takes about 20ms here, but when I drop the caches it takes more than 100ms:

➜  nelua-lang git:(master ✓) nelua -tb --no-cache examples/helloworld.nelua 
startup      22.6 ms
parse        1.5 ms
preprocess   0.0 ms
analyze      3.1 ms
generate     0.1 ms
compile      34.1 ms
tota…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@stefanos82
Comment options

@edubart
Comment options

@stefanos82
Comment options

@edubart
Comment options

@stefanos82
Comment options

Answer selected by edubart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants