[interprocess::file_mapping] Please add resize method

Hello, Could you please add resize method to the file_mapping class? Also please don't fill file with zeros by default? This functionality increases latency spikes. Make it as quick as possible. Thanks. Best regards. Dima -- Dmytro Ovdiienko e-mail: dmitriy.ovdienko@gmail.com skype: dmitriy.ovdienko@gmail.com mobile: +38050-1909731

El 11/07/2011 13:02, Dmytro Ovdiienko escribió:
Hello,
Could you please add resize method to the file_mapping class?
Also please don't fill file with zeros by default? This functionality increases latency spikes. Make it as quick as possible.
Patch welcome ;-) Best, ion

Attached. Also there is one more bug. You did not do set_end_of_file in the if block. 2011/7/11 Ion Gaztañaga <igaztanaga@gmail.com>
El 11/07/2011 13:02, Dmytro Ovdiienko escribió:
Hello,
Could you please add resize method to the file_mapping class?
Also please don't fill file with zeros by default? This functionality increases latency spikes. Make it as quick as possible.
Patch welcome ;-)
Best,
ion ______________________________**_________________ Unsubscribe & other changes: http://lists.boost.org/** mailman/listinfo.cgi/boost<http://lists.boost.org/mailman/listinfo.cgi/boost>
-- Dmytro Ovdiienko e-mail: dmitriy.ovdienko@gmail.com skype: dmitriy.ovdienko@gmail.com mobile: +38050-1909731

El 12/07/2011 12:24, Dmytro Ovdiienko escribió:
Attached. Also there is one more bug. You did not do set_end_of_file in the if block.
Sorry, for the delay, I was on holidays. Regarding zero-fill, I need to do that because POSIX guarantees this. I'm trying to achieve portable behaviour. Unless windows guarantees to read zeros after SetEndOfFile. Best, Ion

Hi Ion, Thank you for getting back. You can define extra method which does not guaranty to fill rest of file with zeros. On POSIX it will be filled with zeros. On windows it will/or not will be filled with zeros. Who cares. Both will conform method specification. User will be able to choose required behaviour. For instance my program does not require file to be filled with zeros. Instead it requires API to be as quick as hardware allows. Looking forward to hearing from you. Thanks. Dima 2011/7/21 Ion Gaztañaga <igaztanaga@gmail.com>
El 12/07/2011 12:24, Dmytro Ovdiienko escribió:
Attached.
Also there is one more bug. You did not do set_end_of_file in the if block.
Sorry, for the delay, I was on holidays. Regarding zero-fill, I need to do that because POSIX guarantees this. I'm trying to achieve portable behaviour. Unless windows guarantees to read zeros after SetEndOfFile.
Best,
Ion ______________________________**_________________ Unsubscribe & other changes: http://lists.boost.org/** mailman/listinfo.cgi/boost<http://lists.boost.org/mailman/listinfo.cgi/boost>
-- Dmytro Ovdiienko e-mail: dmitriy.ovdienko@gmail.com skype: dmitriy.ovdienko@gmail.com mobile: +38050-1909731

El 06/08/2011 9:38, Dmytro Ovdiienko escribió:
Hi Ion,
Thank you for getting back.
You can define extra method which does not guaranty to fill rest of file with zeros. On POSIX it will be filled with zeros. On windows it will/or not will be filled with zeros. Who cares. Both will conform method specification. User will be able to choose required behaviour.
For instance my program does not require file to be filled with zeros. Instead it requires API to be as quick as hardware allows.
Looking forward to hearing from you.
Maybe that's the best choice. I'd need to check if Interprocess can take advantage of his behavior, but I don't know if I'm taking advantage of this zero-initialization guarantee internally. Best, Ion
participants (2)
-
Dmytro Ovdiienko
-
Ion Gaztañaga