DelphiBuilder / NetCom7

The fastest communications possible. Delphi rulez.
MIT License
174 stars 43 forks source link

Would benefit of some proof to back up Bold claim #1

Closed TommiPrami closed 4 years ago

TommiPrami commented 4 years ago

Not saying this isn't fast, but if you provide some simple test to compare it to let's say Indy and ICS.

There are others, but might be HTTP only or not client server solution. Grijjy has TCP-socket client at least I think. Many have interesting HTTP server and client stuff tough.

But anyhow, some numbers would do good.

-tee-

TommiPrami commented 4 years ago

I've been developing one client server thingy using Indy over HTTP. It's biggest bottleneck with larger requests was that whole of the data had to be formed and sent/received before parsing.

We were pondering on re-coding it a bit to have more streaming solution that could start sending and receiving more than less right away. Also parsing the data and processing it in either end.

Typical heavy scenario was Ask for data (fast), then do select 20 000 rows from DB, go through it and form data to send. Compress and encrypt it. And after that send. In client side receive all data, decrypt, decompress, parse and then process. It's pretty clear that most of time was wasted on waiting for data to be sent and received, before nothing actual work was done.

I kind of understand on your readme, that you've implemented something we were thinking of back then. But not sure, have not checked out the code (because of little busy now)

DelphiBuilder commented 4 years ago

Dear mWaltari,

I just did a fair-and-square comparison of the two libraries. It seems Indy is on par with NetCom, performance wise! This is quite a surprise to me as I do remember testing the Indy sockets to compare performances when I was implementing NetCom. I must have tested Indy9 at the time. It seems Indy10 is much more performant than what its predecessor used to be. Thank you for opening this issue. I have deleted the claim from the readme. Thank you.

TommiPrami commented 4 years ago

btw. Check these sockets, if there is any benefits, could builöd your lib on top of either one. (Again if better)

https://github.com/winddriver/Delphi-Cross-Socket https://github.com/grijjy/DelphiScalableClientSockets

I think both are cross platform also.

-Tee-

DelphiBuilder commented 4 years ago

OHHH THANKS VERY MUCH MAN!!!!! This is exactly what I needed, especially if they have made them Linux compatible. I don't currently have the architect edition of Delphi and cannot test code for Linux... Thank you so much. On Tuesday, 21 April 2020, 10:08:47 EEST, Tommi Prami notifications@github.com wrote:

btw. Check these sockets, if there is any benefits, could builöd your lib on top of either one. (Again if better)

https://github.com/winddriver/Delphi-Cross-Socket https://github.com/grijjy/DelphiScalableClientSockets

I think both are cross platform also.

-Tee-

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub, or unsubscribe.

TommiPrami commented 4 years ago

Just one point on Indy: https://twitter.com/AndyHTech/status/1255961790460067841