performance and code size improvements
- Use default case for constructors with no explicit match. - self-compile is 15s now - code size is 60% smaller code size and self compile time on par with the idris-built version
This commit is contained in:
5
scripts/stats.py
Normal file → Executable file
5
scripts/stats.py
Normal file → Executable file
@@ -1,7 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
fn = sys.argv[1]
|
||||
stats = {}
|
||||
acc = ''
|
||||
name = ''
|
||||
for line in open('newt.js'):
|
||||
for line in open(fn):
|
||||
if line.startswith('const'):
|
||||
if name: stats[name] = len(acc)
|
||||
acc = line
|
||||
|
||||
Reference in New Issue
Block a user