Click here to Skip to main content
15,867,330 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Synchro/Servo? Stepper? What? Pin
GenJerDan29-Dec-20 0:13
GenJerDan29-Dec-20 0:13 
GeneralRe: Synchro/Servo? Stepper? What? Pin
RedDk28-Dec-20 6:59
RedDk28-Dec-20 6:59 
GeneralRe: Synchro/Servo? Stepper? What? Pin
Joan M28-Dec-20 10:34
professionalJoan M28-Dec-20 10:34 
GeneralA little light reading Pin
honey the codewitch27-Dec-20 13:05
mvahoney the codewitch27-Dec-20 13:05 
GeneralRe: A little light reading Pin
PIEBALDconsult27-Dec-20 13:59
mvePIEBALDconsult27-Dec-20 13:59 
GeneralRe: A little light reading Pin
Rick York27-Dec-20 17:09
mveRick York27-Dec-20 17:09 
GeneralRe: A little light reading Pin
Chris Maunder27-Dec-20 14:46
cofounderChris Maunder27-Dec-20 14:46 
GeneralRe: A little light reading Pin
honey the codewitch27-Dec-20 15:25
mvahoney the codewitch27-Dec-20 15:25 
I haven't even started to use that yet, because I'm trying the portable strpbrk() function over a memory mapped file first.

My results are fire.

Approx stack size of local JSON stuff is 176 bytes
Read 1290495 nodes and 20383269 characters in 249.894000 ms at 76.032238MB/s
Skipped 1290495 nodes and 20383268 characters in 33.278000 ms at 570.947773MB/s
utf8 scanned 20383269 characters in 75.141000 ms at 252.857960MB/s
raw ascii i/o 20383269 characters in 58.162000 ms at 326.673773MB/s
raw ascii block i/o 19 blocks in 3.130000 ms at 6070.287540MB/s


Bold line is where I search fast through a document

Edit: Fixed a fencepost error in counting the position.

Edit 2: More complete benchmarks:

Query is $.season[7].episode[2].overview
Approx stack size of local JSON stuff is 152 bytes
Found "Labore magna sint occaecat ea officia labore sit voluptate ut fugiat. Nisi qui commodo consectetur officia incididunt anim do culpa eu. Eu ea magna aliqua excepteur et. Qui eiusmod irure adipisicing enim aute nostrud deserunt eiusmod quis culpa id.rn" and scanned 7149420 characters in 12.034000 ms at 498.587336MB/s

Query is $..id:
Approx stack size of local JSON stuff is 152 bytes
Found 40008 fields and scanned 20383269 characters in 65.563000 ms at 289.797599MB/s

Approx stack size of local JSON stuff is 176 bytes
Read 1290495 nodes and 20383269 characters in 256.696000 ms at 74.017515MB/s
Skipped 1290495 nodes and 20383269 characters in 33.527000 ms at 566.707430MB/s
utf8 scanned 20383269 characters in 72.913000 ms at 260.584532MB/s
raw ascii i/o 20383269 characters in 57.787000 ms at 328.793673MB/s
raw ascii block i/o 19 blocks in 3.106000 ms at 6117.192531MB/s


Edit: Found and fixed a bug with some escape characters not getting translated. (regression when I introduced my fast scanning)
Real programmers use butterflies


modified 27-Dec-20 22:19pm.

GeneralRe: A little light reading Pin
theoldfool28-Dec-20 3:33
professionaltheoldfool28-Dec-20 3:33 
GeneralRe: A little light reading Pin
honey the codewitch28-Dec-20 3:45
mvahoney the codewitch28-Dec-20 3:45 
GeneralRe: A little light reading Pin
trønderen28-Dec-20 4:19
trønderen28-Dec-20 4:19 
GeneralRe: A little light reading Pin
Jörgen Andersson28-Dec-20 4:56
professionalJörgen Andersson28-Dec-20 4:56 
GeneralRe: A little light reading Pin
W Balboos, GHB28-Dec-20 5:46
W Balboos, GHB28-Dec-20 5:46 
GeneralRe: A little light reading Pin
Chris Maunder29-Dec-20 4:56
cofounderChris Maunder29-Dec-20 4:56 
GeneralRe: A little light reading Pin
W Balboos, GHB29-Dec-20 5:14
W Balboos, GHB29-Dec-20 5:14 
GeneralRe: A little light reading Pin
Randor 27-Dec-20 15:11
professional Randor 27-Dec-20 15:11 
GeneralRe: A little light reading Pin
Rick York27-Dec-20 23:05
mveRick York27-Dec-20 23:05 
GeneralRe: A little light reading Pin
W Balboos, GHB28-Dec-20 5:50
W Balboos, GHB28-Dec-20 5:50 
GeneralRe: A little light reading Pin
Rick York28-Dec-20 6:53
mveRick York28-Dec-20 6:53 
GeneralRe: A little light reading Pin
harold aptroot27-Dec-20 20:32
harold aptroot27-Dec-20 20:32 
GeneralRe: A little light reading Pin
honey the codewitch27-Dec-20 20:35
mvahoney the codewitch27-Dec-20 20:35 
GeneralMessage Removed Pin
27-Dec-20 8:26
Tanmoy8727-Dec-20 8:26 
GeneralSo there's still a use for bit twiddling Pin
honey the codewitch27-Dec-20 2:28
mvahoney the codewitch27-Dec-20 2:28 
GeneralRe: So there's still a use for bit twiddling Pin
pkfox27-Dec-20 2:59
professionalpkfox27-Dec-20 2:59 
GeneralRe: So there's still a use for bit twiddling Pin
honey the codewitch27-Dec-20 4:09
mvahoney the codewitch27-Dec-20 4:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.