Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: Rosetta Code: Long List is Long (faster - vec)

by marioroy (Prior)
on Jan 09, 2023 at 12:59 UTC ( [id://11149457]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Rosetta Code: Long List is Long (faster - vec)
in thread Rosetta Code: Long List is Long

Yes, I'm seeing clang++ slightly faster too, but only for the limited length fixed string case.

Same here.

I also fiddled with some of the many compiler parameters but felt overwhelmed by the sheer number and complexity of them, so just stuck to the basic ones for now.

I tried various parameters not realizing no improvements. The following performs similarly, without the extra CFLAGS.

$ clang++ -o llil2vec -std=c++11 -Wall -O3 llil2vec.cpp $ ./llil2vec big1.txt big2.txt big3.txt >out.txt llil2vec (fixed string length=6) start get_properties CPU time : 1.65488 secs emplace set sort CPU time : 0.470765 secs write stdout CPU time : 0.850356 secs total CPU time : 2.97605 secs total wall clock time : 3 secs

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11149457]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found