Timothy Clem
0c0287642b
🔥 temp.rb
2017-02-10 15:35:09 -08:00
Rob Rix
802c048ec6
Pull the drop & take into the where clause.
...
This change, while semantically equivalent, causes `slice` to complete in approximately 1/3rd the time, and allocate only a fraction as much.
Maybe ghc can fuse this better or something? I honestly have no idea, but I’ll take it.
/cc @github/semantic-code
2017-02-10 17:09:54 -05:00
Rob Rix
2bfc2d91c8
Offset the child range correctly.
2017-02-10 16:57:33 -05:00
Rob Rix
f8cc3b8933
Close over the right source.
2017-02-10 16:53:40 -05:00
Rob Rix
00c14e403a
Revert "Source carries its Range."
...
This reverts commit 6e075787935c10b0bd7256673a5623cb5d1a4945.
2017-02-10 16:44:09 -05:00
Rob Rix
f3bad55fee
Revert "Close over the correct source."
...
This reverts commit 6770d9970d9e4aee6029e9b739583c1dc8cfc372.
2017-02-10 16:44:07 -05:00
Rob Rix
46aa3b8fc0
Revert "Take the range from the source."
...
This reverts commit fd59885f1dc0a4dba976617ed6791d76ad44f708.
2017-02-10 16:44:06 -05:00
Rob Rix
aa78d3215f
Revert "Make doubly sure we don’t close over the wrong variable."
...
This reverts commit 9d24a050f33ad4e123f82a272331d39fd75de68b.
2017-02-10 16:44:03 -05:00
Rob Rix
7d019b9032
Revert "O(1) length."
...
This reverts commit db4025e8daacf7a8a716b5ddc621b6053cff768f.
2017-02-10 16:44:00 -05:00
Rob Rix
8e241ef71d
Revert "Use O(1) length to find line ranges."
...
This reverts commit 2c5ec5a3254ce88756ddc9312ff50cbdf884789d.
2017-02-10 16:43:57 -05:00
Rob Rix
92831bc12f
Revert "Get the total range of a Source in O(1)."
...
This reverts commit b867910530a6078bb2336e7abc7fca8327851435.
2017-02-10 16:43:55 -05:00
Rob Rix
901f085bec
Revert "Strictify Source’s fields."
...
This reverts commit 4b1917a45aa841db8f3fa30bf0d7fd2757f11b42.
2017-02-10 16:43:52 -05:00
Rob Rix
913fb11aa8
Strictify Source’s fields.
2017-02-10 16:42:41 -05:00
Rob Rix
9a23a6ae40
Get the total range of a Source in O(1).
2017-02-10 15:58:35 -05:00
Rob Rix
c18f3b8224
Use O(1) length to find line ranges.
2017-02-10 15:49:25 -05:00
Rob Rix
ff2d0e6de6
O(1) length.
2017-02-10 15:48:24 -05:00
Rob Rix
d1a5167999
Make doubly sure we don’t close over the wrong variable.
2017-02-10 15:45:02 -05:00
Rob Rix
94c448bef3
Take the range from the source.
2017-02-10 15:42:16 -05:00
Rob Rix
26efa43611
Close over the correct source.
2017-02-10 15:35:10 -05:00
Rob Rix
672ff179ed
Source carries its Range.
2017-02-10 15:33:41 -05:00
Rob Rix
3298641a3b
Define a function to divide a range in two.
2017-02-10 15:22:27 -05:00
Rob Rix
6bc9971661
Rename unSource to sourceText.
2017-02-10 15:12:39 -05:00
Rob Rix
2a30f6d462
Pre-slice in termToDiffInfo.
2017-02-10 14:23:42 -05:00
Rob Rix
5134595525
Rename blob to source.
2017-02-10 14:18:55 -05:00
Rob Rix
bab725047d
Divide once and multiply d times.
2017-02-10 13:31:06 -05:00
Rob Rix
d28e0f23ac
Merge remote-tracking branch 'origin/master' into what-the-text
2017-02-10 13:10:46 -05:00
Rick Winfrey
8e2c3e0147
Merge pull request #978 from github/cache-and-discard-feature-vectors
...
Cache and discard feature vectors
2017-02-10 10:01:53 -08:00
Rob Rix
f723b576e1
Pass the getter in.
2017-02-10 12:59:22 -05:00
Rob Rix
ad5d659941
Cut down on crossing the FFI.
2017-02-10 12:58:15 -05:00
Rob Rix
5688c2b447
Pre-slice the source passed to toTerm.
2017-02-10 12:26:02 -05:00
Rob Rix
9bcabf21b7
Extract a function to retrieve the range for a node.
2017-02-10 12:24:10 -05:00
Rob Rix
8e1095535a
Update the 📝 for Source.
2017-02-10 11:24:38 -05:00
Rob Rix
7ea240414b
Rename some bindings.
2017-02-10 11:24:31 -05:00
Rob Rix
bc2a29d84e
Source is no longer parametric in the character type.
2017-02-10 11:21:24 -05:00
Rob Rix
2c0b19dd6f
Rename getVector to unSource.
2017-02-10 11:15:49 -05:00
Rob Rix
35c39e8b56
Change subtractRange to offsetRange.
...
This has slightly clearer semantics.
2017-02-10 11:11:25 -05:00
Rob Rix
3d975ece64
Move totalRange to Source properly.
2017-02-10 11:08:17 -05:00
Rob Rix
fa8bc84921
Bump tree-sitter.
2017-02-10 11:06:23 -05:00
Rob Rix
e85eb49e0e
Tidy up the imports a bit.
2017-02-10 11:02:38 -05:00
Rob Rix
060680f070
🔥 a redundant import.
2017-02-10 09:32:10 -05:00
Rob Rix
42871bcc94
Fix do notation.
2017-02-10 09:28:57 -05:00
Rob Rix
9e80427458
Bump.
2017-02-10 09:27:42 -05:00
Rob Rix
2108d7287a
Use the new input string with length API.
2017-02-10 09:23:51 -05:00
Rob Rix
c7366062b4
Bump haskell-tree-sitter.
2017-02-10 09:22:52 -05:00
Rob Rix
04c22650a2
Bump haskell-tree-sitter for explicit input length API.
2017-02-10 09:15:54 -05:00
Timothy Clem
f4a10a4c3f
Use blobToByteString
2017-02-09 21:31:55 -08:00
Timothy Clem
d6796afd6f
Pass Text to tree-sitter
2017-02-09 21:31:29 -08:00
Timothy Clem
905fdea0a2
Put back detect
2017-02-09 21:30:48 -08:00
Timothy Clem
c485c0ab55
Try the default converter
2017-02-09 16:18:19 -08:00
Timothy Clem
e92c43224e
Don't use Char8 ByteStrings
2017-02-09 15:01:15 -08:00