fork of https://github.com/hashicorp/hcl because issue : https://github.com/hashicorp/hcl/issues/290 these code permit use of "nested" field decoding which is just composite struct
Go to file
Martin Atkins c233270a9b zclwrite: use a single, flat writer token buffer
Previously we were allocating a separate heap object for each token, which
creates a lot of small objects for the GC to manage. Since we know that
we're always converting from a flat array of native tokens, we can produce
a flat array of writer tokens first and _then_ take pointers into that
array to achieve our goal of making a slice of pointers.

For the use-case of formatting a sequence of tokens by tweaking the
"SpacesBefore" value, this means we can get all of our memory allocation
done in a single chunk and then just tweak the allocated, contiguous
tokens in-place, which should reduce memory pressure for a task which
will likely be done frequently by a text editor integration doing "format
on save".
2017-06-07 06:38:41 -07:00
gozcl Update cty references to its new home in the zclconf github account 2017-05-27 17:35:44 -07:00
zcl zclsyntax: ScopeTraversalExpr.Value implementation, and tests 2017-06-05 08:02:54 -07:00
zcldec zcldec: convert AttrSpec results to the given type 2017-06-04 13:22:03 -07:00
zcled Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
zclparse zclparse: keep ParseZCL results in the files registry 2017-06-04 09:02:41 -07:00
zclwrite zclwrite: use a single, flat writer token buffer 2017-06-07 06:38:41 -07:00
.travis.sh build: capture code coverage stats during Travis-CI run 2017-06-02 08:27:20 -07:00
.travis.yml build: stop running Travis-CI test run on Go 1.7.x 2017-06-02 08:27:20 -07:00
LICENSE LICENSE 2017-05-13 08:51:32 -07:00