Cycle 10, day6:
Integrating the new JSON library starts to work.
The author didn't touch it for about 5 years and it is still perfect.
My first issue with it was that it didn't support my specific situations:
1. I receive JSON payload in non terminated string. I could copy them into a new terminated buffer but the whole point is to minimize memory copies. The old currently used lib support that by offering a function allowing you to specify the buffer length.
2. When sending out JSON message, I need to know exactly how much space the JSON encoding will need to request a msg frame with a payload of the correct size from the network protocol layer. The encoder must then output into that payload space without terminating the string with a NULL char.
The library design is so neat that I have been able with code to adapt it to my exact need. I intend to share those custom classes to the author once I have successfully tested them all... Who knows maybe he is going to like what I have done with his work and decide to integrate my classes into his official lib... I think that he may have moved on to new challenges and perhaps not interested anymore in maintaining the lib.. but I'm going to let him decide...
It took some time to create a whole new pattern how my code handle JSON (it took the whole day). I had my first prototype ready to test at the end of the afternoon in a non critical spot and it did work like a charm. I need to polish a little bit more the pattern but once it is well refined, it is going to be a breeze to deploy it everwhere in my code and totally pull the plug on the old lib.
I am very thrilled to find out what it will do in my system hotspot where millions of JSON messages are treated. The new solution does not allocate a single byte from the CRT lib whereas the current libs allocate/free dozens of buffers for every single processed msg...
The last few days exchange trading volume still confirm the downtrend... The volume now is literally a quarter of what it was in spring... Either, investors are uncertain of what happens next in the market and remain on the side or the exchange volume shrinking is the reflect of the real world economy...
Either way, since my system doesn't perform well in low volume environment, it is becoming obvious that I need to integrate binance which is the biggest crypto exchange... I'm postponing this move because I know that this will require some colossal effort to pull it off...
In the meantime, Speeding up my system might allow the system to catch more detected good trades. It detected few one in the last day but they didn't last long enough for my system to catch them (ie less than 100 ms)...
So now, I'm going to start the off days and I'll start cycle 11 on Wednesday evening. What I can say about the cycle 10 6 on days is that they have been very rich in dreams. I believe that I made very big dreams in every single on day of cycle 10 including last night...
Subconcious is currently very busy shuffling things with the OF subliminal suggestions it seems...
Integrating the new JSON library starts to work.
The author didn't touch it for about 5 years and it is still perfect.
My first issue with it was that it didn't support my specific situations:
1. I receive JSON payload in non terminated string. I could copy them into a new terminated buffer but the whole point is to minimize memory copies. The old currently used lib support that by offering a function allowing you to specify the buffer length.
2. When sending out JSON message, I need to know exactly how much space the JSON encoding will need to request a msg frame with a payload of the correct size from the network protocol layer. The encoder must then output into that payload space without terminating the string with a NULL char.
The library design is so neat that I have been able with code to adapt it to my exact need. I intend to share those custom classes to the author once I have successfully tested them all... Who knows maybe he is going to like what I have done with his work and decide to integrate my classes into his official lib... I think that he may have moved on to new challenges and perhaps not interested anymore in maintaining the lib.. but I'm going to let him decide...
It took some time to create a whole new pattern how my code handle JSON (it took the whole day). I had my first prototype ready to test at the end of the afternoon in a non critical spot and it did work like a charm. I need to polish a little bit more the pattern but once it is well refined, it is going to be a breeze to deploy it everwhere in my code and totally pull the plug on the old lib.
I am very thrilled to find out what it will do in my system hotspot where millions of JSON messages are treated. The new solution does not allocate a single byte from the CRT lib whereas the current libs allocate/free dozens of buffers for every single processed msg...
The last few days exchange trading volume still confirm the downtrend... The volume now is literally a quarter of what it was in spring... Either, investors are uncertain of what happens next in the market and remain on the side or the exchange volume shrinking is the reflect of the real world economy...
Either way, since my system doesn't perform well in low volume environment, it is becoming obvious that I need to integrate binance which is the biggest crypto exchange... I'm postponing this move because I know that this will require some colossal effort to pull it off...
In the meantime, Speeding up my system might allow the system to catch more detected good trades. It detected few one in the last day but they didn't last long enough for my system to catch them (ie less than 100 ms)...
So now, I'm going to start the off days and I'll start cycle 11 on Wednesday evening. What I can say about the cycle 10 6 on days is that they have been very rich in dreams. I believe that I made very big dreams in every single on day of cycle 10 including last night...
Subconcious is currently very busy shuffling things with the OF subliminal suggestions it seems...