VirtualBox

Changeset 29470 in vbox


Ignore:
Timestamp:
May 14, 2010 1:10:17 PM (15 years ago)
Author:
vboxsync
Message:

Main/Machine: bump chunk size for reading the log file to 32K

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r29462 r29470  
    49894989    alock.release();
    49904990
    4991     size_t cbData = (size_t)RT_MIN(aSize, 2048);
     4991    /* Limit the chunk size to 32K for now, as that gives better performance
     4992     * over (XP)COM, and keeps the SOAP reply size under 1M for the webservice.
     4993     * One byte expands to approx. 25 bytes of breathtaking XML. */
     4994    size_t cbData = (size_t)RT_MIN(aSize, 32768);
    49924995    com::SafeArray<BYTE> logData(cbData);
    49934996
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette