Skip to content

Commit

Permalink
Cache much smaller blocks
Browse files Browse the repository at this point in the history
Ideally we'd buffer large hunks of the packfile, but wrapping a
BufferMount over an HTTP2Mount doesn't give us that. This makes us a
little less wasteful of memory and stuff. Buffering at the packfile
level may not be so necessary in light of the other nacl-mounts
optimizations.
  • Loading branch information
davidben committed Mar 24, 2012
1 parent 8db84e2 commit 7668e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nacl/nacl_glue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void GameInstance::LaunchGame() {
http2_mount->ReadManifest(manifest_, manifest_size_);

proxy_->mkdir("/content", 0777);
res = proxy_->mount("/content", new BufferMount(http2_mount, 1024 * 1024, 100));
res = proxy_->mount("/content", new BufferMount(http2_mount, 100 * 1024, 1000));
if (!res) {
fprintf(stderr, "/content initialization success.\n");
} else {
Expand Down

0 comments on commit 7668e77

Please sign in to comment.