|
Since you'are already 'on the metal', write your own superfast Arduino flasher...
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
honey the codewitch wrote: It makes my files have "errors" all over them even though they compile with no warnings even.
It happened to me with simple C++ code too, and found it to be a problem with the intellisense part of the C++ plugin...
Don't remember how but disabled a feature there and I have no 'fake' errors anymore...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Skip to season/episode by index - JSONPath equivelent $.seasons[7].episodes[0].name
Found "cillum"
Memory: 695.979207MB/s
Found "cillum"
Memory Mapped: 652.534646MB/s
Found "cillum"
File: 108.012938MB/s
I'm in spitting distance of searching through JSON @ 700MB/s on my machine
I just made it even faster
Skip to season/episode by index - JSONPath equivelent $.seasons[7].episodes[0].name
Found "cillum"
Memory: 743.182245MB/s
Found "cillum"
Memory Mapped: 666.378996MB/s
Found "cillum"
File: 99.085924MB/s
holy cow batman. I can tell my hardware is starting to struggle with it.
It won't run anywhere near this fast on an 8-bit arduino though
If I didn't have to keep track of an object depth I could probably get it over 800
Real programmers use butterflies
modified 29-Dec-20 16:22pm.
|
|
|
|
|
Be interesting on an UNO @16MHz
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
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
|
|
|
|