Descriptiontoken/position: implemented Pos
A pos value represents a file-set specific, accurate
source position value. It is 8x smaller in size than
the corresponding Position value (4 bytes vs 32 bytes).
Using Pos values instead of Position values in AST
saves approx. 25MBytes of memory when running godoc
on the current repository.
This CL introduces the Pos, File, and FileSet data
types; it does not affect existing code. Another
(pending CL) will make the change to all dependent
source files.
Missing: tests
Patch Set 1 #Patch Set 2 : code review 2936041: position.go - preliminary version #Patch Set 3 : code review 2936041: position.go - preliminary version #
Total comments: 2
Patch Set 4 : code review 2936041: position.go - preliminary version #Patch Set 5 : code review 2936041: token/position: implemented Pos #Patch Set 6 : code review 2936041: token/position: implemented Pos #
Total comments: 19
Patch Set 7 : code review 2936041: token/position: implemented Pos #Patch Set 8 : code review 2936041: token/position: implemented Pos #
MessagesTotal messages: 6
|