Speed Improvments for Note Construction JAdd

Hello,

Is there anyway to improve the speed to process the json object for a note add? The note we are sending has 18 JAddStringToObject to the body and I’ve seen this take approximately 2 seconds to complete on an ESP32. It seems to be related to the time for it to process the JAddString because when we comment some of them out it gets faster. Speed is key because the user is waiting for the note.add to complete.

I appreciate any ideas or methods of creating the json object faster.

Thank you!

Sincerely,
Matt

Hi @shonky2 ,

Can you please provide a code sample so we can take a closer look? It definitely shouldn’t take that long to complete so hopefully we can help debug this.

Thanks,
Rob

Hey @RobLauer,

I just sent you a message with the code. Thank you!

Sincerely,
Matt

@shonky2 we ran some tests internally and were not able to replicate any issues with the JAddStringToObject method. I’ll send you the .ino file we used for testing (using I2C on a Notecarrier-AF) so you can see what was done. Basically the tests showed it took < 1ms to run.

However, we had to make up our own string values for testing. If you could send some real world data that might help as well.

Hi @RobLauer,

Thank you for sending over. We’ll review and I’ll follow up. I appreciate all of your help!

Sincerely,
Matt