summary refs log tree commit diff stats
path: root/compiler/ropes.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-15 00:21:10 +0200
committerAraq <rumpf_a@web.de>2012-09-15 00:21:10 +0200
commit214c7a2ebdd15b623dff7e537007c99e66f256cc (patch)
treea37304594d96e841d96be39bf53fd89969a5ac66 /compiler/ropes.nim
parent4a435a8fb4551b03bdcbbbd9b074a51fa46928dd (diff)
downloadNim-214c7a2ebdd15b623dff7e537007c99e66f256cc.tar.gz
implemented a stack trace profiler
Diffstat (limited to 'compiler/ropes.nim')
-rwxr-xr-xcompiler/ropes.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ropes.nim b/compiler/ropes.nim
index 0107f5241..50c89e4d9 100755
--- a/compiler/ropes.nim
+++ b/compiler/ropes.nim
@@ -294,6 +294,7 @@ proc crcFromRopeAux(r: PRope, startVal: TCrc32): TCrc32 =
     result = crcFromRopeAux(r.right, result)
 
 proc newCrcFromRopeAux(r: PRope, startVal: TCrc32): TCrc32 = 
+  # XXX profiling shows this is actually expensive
   var stack: TRopeSeq = @[r]
   result = startVal
   while len(stack) > 0: