Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(18)

Unified Diff: src/pkg/runtime/runtime.h

Issue 8160043: runtime: cache most immediately-computed hash value (Closed)
Patch Set: diff -r a3717460e37c https://go.googlecode.com/hg/ Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/runtime/proc.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/runtime.h
===================================================================
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -323,6 +323,11 @@
uintptr settype_buf[1024];
uintptr settype_bufsize;
+ uintptr lasthmap; // XXX actually an Hmap* but linker crashes with that
+ uintptr lastkey; // int value or string data pointer
+ intgo lastlen; // int size in bytes, or string length in bytes
+ uintptr lasthash; // last value of lasthmap + lastkey
+
#ifdef GOOS_windows
void* thread; // thread handle
#endif
« no previous file with comments | « src/pkg/runtime/proc.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b