|
I'm about to compile it for the 8-bit ATmega2560 (on an Arduino 2560 mega board)
Here's the result on a little ESP32 wired to an SD card using the junk built in SD library (SDFat is faster)
Extract episodes - JSONPath equivelent: $..episodes[*].season_number,episode_number,name
Extracted 112 episodes using 23 bytes of the pool
File: 77.549124kB/s
Episode count - JSONPath equivelent: $..episodes[*].length()
Found 112 episodes
File: 78.140425kB/s
Read id fields - JSONPath equivelent: $..id
Read 433 id fields
File: 77.093699kB/s
Skip to season/episode by index - JSONPath equivelent $.seasons[7].episodes[0].name
Found "New Deal"
File: 78.314719kB/s
Read the entire document
Read 10905 nodes
File: 71.661763kB/s
Structured skip of entire document
File: 78.352448kB/s
Episode parsing - JSONPath equivelent: $..episodes[*]
Parsed 112 episodes using 4131 bytes of the pool
File: 72.595106kB/s
Read status - JSONPath equivelent: $.status
status: Canceled
File: 78.384612kB/s
Real programmers use butterflies
|
|
|
|
|
Here it is on an Arduino Mega 2560 w/ an ATmega2560 CPU @ 16MHz, 8kB SRAM
I want to get out and push.... but it works!
Extract episodes - JSONPath equivelent: $..episodes[*].season_number,episode_number,name
Extracted 112 episodes using 23 bytes of the pool
File: 22.345446kB/s
Episode count - JSONPath equivelent: $..episodes[*].length()
Found 112 episodes
File: 22.884773kB/s
Read id fields - JSONPath equivelent: $..id
Read 433 id fields
File: 22.004370kB/s
Skip to season/episode by index - JSONPath equivelent $.seasons[7].episodes[0].name
Found "New Deal"
File: 22.934196kB/s
Read the entire document
Read 10905 nodes
File: 17.259264kB/s
Structured skip of entire document
File: 22.920527kB/s
Episode parsing - JSONPath equivelent: $..episodes[*]
Parsed 112 episodes using 2981 bytes of the pool
File: 16.879354kB/s
Read status - JSONPath equivelent: $.status
status: Canceled
File: 22.893579kB/s
Real programmers use butterflies
modified 29-Dec-20 20:18pm.
|
|
|
|
|
Impressive
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
And they say Java runs anywhere.
Real programmers use butterflies
|
|
|
|
|
"Slows down every piece of hardware..."
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
What just blew you away ? - the formatting is a bit screwed - I take it you have achieved a performace increase - that is what drives you ?
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I got 50-100MB increase in throughput depending on what I'm doing, with one optimization.
Real programmers use butterflies
|
|
|
|
|
You need to get your hands on that server that LTT was showing on their video yesterday. It was a 128 core, 2TB ram with raided nvme pushing through 30GB/s under Windows and knocking on the door if 100GB/s on Linux.
https://youtu.be/9MXhGABtuCA
|
|
|
|
|
Well now I know what I want for my birthday.
Real programmers use butterflies
|
|
|
|
|
Meanwhile, somewhere in Europe, an unkown noob implemented succesfully a JCombo Box in Java Swing lol
Haha you're making me depressed
modified 3-Jun-21 21:01pm.
|
|
|
|
|
Take heart. We all have to start somewhere.
What I'm doing to make it fast isn't even all that complicated. It's just combining two of the right things - in this case, memory mapped files w/ strpbrk()
Sometimes coding isn't about how "good" you are. As often as not it's about being in the right place at the right time. Half of the "good" code I write practically falls into my lap. The rest of the time I'm writing buggy garbage.
Real programmers use butterflies
|
|
|
|
|
|
Early I posted some links to some music on youtube. As it often happens, one click leads to another and I ended up with the BGKO Barcelona Gipsy balKan Orchestra[^], in concert.
It's good background music, but what a strange surprise: they start of with Klezmer. Yet, come to think of it - not that much a surprise - both music's are from people that travel/are driven around Europe. The improve from both cultures - well just nice music to work by.
[edit/suppliment]
And I wandered on to the didgeridoo - including how to make you own and the basics of blowing Gabriel's other horn. Hypnotic. Also, sounds like a good background theme for hunting management for later stuffing and mounting
[edit/suppliment]
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
modified 29-Dec-20 12:36pm.
|
|
|
|
|
Led Zeplin they ain't. Different
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
Led Zeplin did their travels, as well, albeit through Middle Earth
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
You are all over the place with the posts today.
At least HTCW stays focused on JSON parsers.
|
|
|
|
|
Wouldn't a tree be a boring site with but a single branch?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
"One Thing Leads To Another" is a song by The Fixx.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Hope you had your Elf a merry little Christmas!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You sleigh me.
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
Reminds me of that old christmas classic, "I'll be gnome for christmas!"
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
Back from the good old days, a well Gnome greeting "Hippy Grew Hair".
And with that, I think I'll package it in for this ToD.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
And a hippy new year?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Now it's back in elf storage.
|
|
|
|
|
Provider name omittedQuote: It's over
2020, or as we like to call it the Year Formerly Known as Jerkface, has been an epic rollercoaster ride through an open sewage pit. It was almost worse than having to watch all the Transformers movies back to back. Almost. Let’s be honest, many of us spent the majority of 2020 inside our homes, slowly losing our marbles while moisturizing with Lysol. Was there crying involved? You bet there was, that stuff stings. But there were even more non-Lysol related tears shed by the billions of people around the world directly affected by events in 2020. And to all of those people, we send nothing but love, strength and wishes of peace and happiness.
So long, never come back
We have a made-up saying in Canada: "When life gives you lemons, you cut those lemons up and squirt them right into life’s eyes. Then you steal life’s wallet. Then you buy shoes. The normal kind, not snowshoes." So go ahead, grab that juicy lemon and squeeze it right into the eyeballs of 2020. Then stretch out your little toesies, slide on your newly acquired dancing shoes, and let’s joyfully tap dance on top of what remains of 2020! Nothing beats celebrations born from spite! Except celebrations that come with discounts... of course. Didn't see that segue coming, did you?
2021 seems nice
The discounts are pretty self explanatory. It's end of the year, and we have to clear stock of these dusty old 2020 subscriptions before 2021 starts, so we're letting them fo for pennies on the dollar! Everything must go! Help us clear out a totally made up and non-existent warehouse of these Pro subscriptions, so we could make room for 2021 inventory, which will naturally be more expensive. Profit from our poor logistics skills and save $19.
They also provide (limited) free service. Nice folks, in general.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|