Re: perfomance of set/hashset operation between python and nim

2017-09-27 Thread jil210
Now I resolved this issue using gcc rather than tcc. tcc version took 25 sec while gcc version 5 sec comparable to python version! I thought tcc faster than gcc but nim using gcc makes faster on linux.

Re: perfomance of set/hashset operation between python and nim

2017-09-27 Thread jil210
thanks for testing. I was doing it with 148Mb files and I will try to revise as you suggested and recompile with -d:release. sure I did it before, though. Yes, i like nim but this performance issue should be resolved somehow.

Re: Execution speed Nim vs. Python

2017-09-26 Thread jil210
Please help speedup with the following nim code taking five times longer than python version: import os, sets, strutils if paramCount() != 2: echo "mydiff file1 file2" quit() let file1 = open(paramStr(1)) let file2 = open(paramStr(2)) let old_lines = file1.readAll().splitLines() let new_lin

perfomance of set/hashset operation between python and nim

2017-09-25 Thread jil210
Hi, I have mydiff.py to compare two files using two sets. my python version is as follows but nim version takes five times longer. Can anyone explain the performance difference or give me a better nim code [I am comparing about two million lines of files: dba01:/oracledba/jlee/python_scripts>tim