experimental compile-time rope formatting code

This commit is contained in:
Zahary Karadjov 2012-11-21 17:49:50 +02:00
commit f644e3079f
3 changed files with 102 additions and 4 deletions

View file

@ -501,3 +501,8 @@ proc MainCommand =
formatFloat(epochTime() - gLastCmdTime, ffDecimal, 3),
formatSize(getTotalMem())])
echo "rope cache stats: "
echo " tries : ", gCacheTries
echo " misses: ", gCacheMisses
echo " efficiency: ", formatFloat(1-(gCacheMisses.float/gCacheTries.float), ffDecimal, 3)