VirtualBox

Changeset 70105 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 13, 2017 10:34:32 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119653
Message:

Main/Machine: Increase chunk size for reading the log from 32K to 512K. The reason for the small chunk size has been eliminated many years ago.

File:
1 edited

Legend:

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

    r70090 r70105  
    66896689    alock.release();
    66906690
    6691     /* Limit the chunk size to 32K for now, as that gives better performance
    6692      * over (XP)COM, and keeps the SOAP reply size under 1M for the webservice.
    6693      * One byte expands to approx. 25 bytes of breathtaking XML. */
    6694     size_t cbData = (size_t)RT_MIN(aSize, 32768);
     6691    /* Limit the chunk size to 512K. Gives good performance over (XP)COM, and
     6692     * keeps the SOAP reply size under 1M for the webservice (we're using
     6693     * base64 encoded strings for binary data for years now, avoiding the
     6694     * expansion of each byte array element to approx. 25 bytes of XML. */
     6695    size_t cbData = (size_t)RT_MIN(aSize, _512K);
    66956696    aData.resize(cbData);
    66966697
Note: See TracChangeset for help on using the changeset viewer.

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