-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timer #626
Comments
This did work well and relatively fast (but ~50 times slower than k2.8) through the first commit done on Jan 15, 2014 69ff6c2
Starting with the second commit of Jan 15, 2014 b590e33 it slowed down some and produced considerable extraneous output
Starting with the second commit of Nov 20, 2014, 8831afa we get:
Staring with the first commit of Jan 31, 2015 40b2dac
Starting with the commit of Mar 20, 2015 1a7ee6b we don't get a timer reading at all
|
Issue 413 listed 4 cases causing segfaults in Kona.
in k2.8
So, instead of segfaults, we have an inconsistency in 1 case. Note, however, that in kona
This is nearly 5000 times slower than k2.8 |
Removed the "trim" function that addressed recursion issues in 2015 in commit 40b2dac
kona is "only" about 3800 times slower thatn k2.8 |
May be time to do some profiling? Compile with the -pg option and then use gprof to look at where time is spent. Look at the man page for gprof on how to use it. This stackoverflow thread is worth reading: https://stackoverflow.com/questions/375913/how-can-i-profile-c-code-running-on-linux/ |
Thanks! . Meanwhile ... some more information on the progression of timings: |
Almost all of the delays are caused by 2 functions:
Deactivating It seems that both of these functions are being interpreted/executed for each line as the file is read. There may be addtional steps that are being done line by line. |
Having identified the problem here, I'm going to leave this as an open item. |
Note that issue #632 did identify a 3rd culprit for the slowness: |
Note that the original problem is with the command
we find that kona executes
k2.8 does not execute
|
The primary reason that the command
then, if we execute it on the sp3.k file described in the prior comment, we get
The full |
I made a better placement for
The result with k2.8
The remaining "slowness" of kona is probably due to the fact the kona uses In any event, this is no longer a bug, and the primary problem is fixed. |
This bug became apparent when working on issue 615.
The command
\l scrabble-puz.k
seemed to run much faster in 32-bit k2.8 than in 64-bit kona.When trying to examine just how much faster:
The text was updated successfully, but these errors were encountered: