EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to work with Worker threads to do a lengthy job (ref_gen_timeouts.html)

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#36063
Posted: 02/29/2016 11:53:13
by pushpak laddha (Basic support level)
Joined: 02/29/2016
Posts: 1

To make your code fast, don't perform lengthy operations (especially network operations) from the callback. Create a worker thread, that will do the job. When you need to write the data, pass this data to the worker thread and return. The worker thread will send the data to the remote side. When the file is opened, cache some of it's data with help of the worker thread and return this data from reading callback.

Any sample code..

Reply

Statistics

Topic viewed 971 times

none




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!