Modify the client core to use compression for the loading of extensions and migration for a speed boost.

git-svn-id: file:///home/svn/framework3/trunk@8517 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Stephen Fewer 2010-02-16 15:01:06 +00:00
parent 4b4b2d62b1
commit 17de90a902
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class ClientCore < Extension
}
if (image != nil)
request.add_tlv(TLV_TYPE_DATA, image)
request.add_tlv(TLV_TYPE_DATA, image, false, true)
else
raise RuntimeError, "Failed to serialize library #{library_path}.", caller
end
@ -222,7 +222,7 @@ class ClientCore < Extension
request = Packet.create_request( 'core_migrate' )
request.add_tlv( TLV_TYPE_MIGRATE_PID, pid )
request.add_tlv( TLV_TYPE_MIGRATE_LEN, payload.length )
request.add_tlv( TLV_TYPE_MIGRATE_PAYLOAD, payload )
request.add_tlv( TLV_TYPE_MIGRATE_PAYLOAD, payload, false, true)
if( process['arch'] == ARCH_X86_64 )
request.add_tlv( TLV_TYPE_MIGRATE_ARCH, 2 ) # PROCESS_ARCH_X64
else