salmanahmad / silo

The Silo Programming Language
0 stars 0 forks source link

Improve Performance of Parser #67

Open salmanahmad opened 10 years ago

salmanahmad commented 10 years ago

Right now the parser's cold-start performance is a bit lack luster. Once the JIT warms up it is super fast but that isn't much help for running scripts. To give some context here is some profiling information on compiling the standard library:

Parse Time core.silo: 2898.6912
Compile Time core.silo: 547.031
Parse Time actor.silo: 4.009
Compile Time actor.silo: 4.911
Parse Time cli.silo: 647.19305
Compile Time cli.silo: 330.052
Parse Time file.silo: 279.06598
Compile Time file.silo: 81.651
Parse Time http.silo: 183.85501
Compile Time http.silo: 209.535
Total Time: 5263.1772

Somethings that I could try are: