1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 01:42:43 +03:00
Commit Graph

2165 Commits

Author SHA1 Message Date
Rob Rix
b276045348 Remove cons. 2015-11-12 16:13:31 -05:00
Rob Rix
82a8f095cf Inline calls to cons. 2015-11-12 16:13:23 -05:00
Rob Rix
4a356a8a0a Remove costOfStream. 2015-11-12 16:10:23 -05:00
Rob Rix
b8fb48d723 Remove min. 2015-11-12 16:10:19 -05:00
Rob Rix
dac24bbf24 µ-optimizations for SES.
1. Avoid redundant computations of cost on the fast path (equal
elements at this vertex).

2. Don’t call `min`; inline the branches instead.

3. Don’t call `costOfStream`; inline the costs instead.
2015-11-12 16:09:53 -05:00
Rob Rix
5253de2ef5 Inline stream costs. 2015-11-12 15:58:14 -05:00
Rob Rix
17b9c0a9ec Fast fail on out of bounds diagonals. 2015-11-12 15:58:03 -05:00
Rob Rix
e1f38f64d0 Precompute the width of the matrix. 2015-11-12 15:26:50 -05:00
Rob Rix
dd812a2b2b Test that we aren’t at the endIndex instead of testing containment.
This should be O(1) for all index types.
2015-11-12 15:20:51 -05:00
Rob Rix
db5307a365 Benchmark diffing within leaves separately. 2015-11-12 15:07:00 -05:00
Rob Rix
a4db95be66 Merge pull request #231 from github/split-css-out
Move the CSS into its own file.
2015-11-12 13:43:50 -05:00
Rob Rix
1f54f77677 Move the CSS into its own file. 2015-11-12 13:41:50 -05:00
Rob Rix
4f19e4c700 Merge pull request #227 from github/line-numbers
Add line numbers to diffs
2015-11-10 18:36:37 -05:00
joshvera
ac32d3dbcb ++Madness 2015-11-10 15:44:05 -05:00
joshvera
50c001f95f ++Madness 2015-11-10 14:17:56 -05:00
joshvera
b1241decda use the right --> overload 2015-11-10 14:11:09 -05:00
joshvera
5c20cfebbb ++Madness 2015-11-10 13:57:50 -05:00
joshvera
2fc0349be3 Pass lines and columns to refined leaves 2015-11-09 15:21:59 -05:00
joshvera
5eddc274cb Map Range<Index> not Range<Column> to Range<Int> 2015-11-09 15:19:34 -05:00
joshvera
2555ead1a7 Revert xcscheme changes 2015-11-09 15:16:05 -05:00
joshvera
0bc8c59e16 ++Madness 2015-11-09 15:15:16 -05:00
joshvera
a520c5d65e calculate line numbers 2015-11-09 14:13:47 -05:00
joshvera
cdda1a5d8d set data-line-number attributes 2015-11-09 13:54:09 -05:00
joshvera
f77b899377 Merge branch 'master' into line-numbers 2015-11-09 12:06:48 -05:00
joshvera
ca15a40773 pass lineNumbers to diffToDOM 2015-11-09 12:06:45 -05:00
joshvera
14eba00c32 ++Madness 2015-11-08 15:24:37 -05:00
joshvera
9ee399ca2d ++Madness 2015-11-08 15:23:59 -05:00
joshvera
576457a3fe take a before and after line number range 2015-11-08 15:21:14 -05:00
joshvera
8d20831f73 insert line numbers 2015-11-08 15:20:32 -05:00
joshvera
93808be85f fix test 2015-11-06 11:01:11 -05:00
Josh Vera
45aa38e6ea Merge pull request #220 from github/refine-leaf-replacements
Refine leaf replacements
2015-11-06 10:55:14 -05:00
Josh Vera
29ecb1cd70 Merge pull request #224 from github/fix-ranges-following-asymmetric-patches
Fix ranges following asymmetric patches
2015-11-06 10:41:48 -05:00
Rob Rix
23c987503a Only insert context for Real Elements™. 2015-11-06 10:32:14 -05:00
Rob Rix
c19bdb0744 Only update the range for Real Elements™. 2015-11-06 10:31:53 -05:00
Rob Rix
f0a1d6e4b1 li elements are invisible if their children are invisible. 2015-11-06 10:31:27 -05:00
Rob Rix
128132ac26 Correct the equality test over terms. 2015-11-05 17:38:40 -05:00
Rob Rix
95596ba60c Use the same cost function as for the overall diff. 2015-11-05 17:37:01 -05:00
Rob Rix
9be8a18bad Use a better cost function. 2015-11-05 17:36:01 -05:00
Rob Rix
c441eaf862 Use the correct index. 2015-11-05 17:34:28 -05:00
Rob Rix
99d3fcb1ab Allow replacement of characters. 2015-11-05 17:30:29 -05:00
Rob Rix
b6d59ff7ef Refine leaves in the output diff. 2015-11-05 17:26:14 -05:00
Rob Rix
82b40bd043 Partial application. 2015-11-05 17:26:06 -05:00
Rob Rix
e4db8a5f14 Refine patches. 2015-11-05 17:18:56 -05:00
Rob Rix
b3ace6c533 Free is a monad. 2015-11-05 17:18:03 -05:00
Rob Rix
d66074eb0c Merge branch 'master' into refine-leaf-replacements 2015-11-05 17:11:21 -05:00
Rob Rix
e668deb9f4 Produce the appropriate diffs. 2015-11-05 17:11:09 -05:00
Rob Rix
c6ec6fa311 Add a property computing a single-element range from an index. 2015-11-05 17:10:41 -05:00
Rob Rix
ead261d459 Disallow replacements. 2015-11-05 17:00:53 -05:00
Rob Rix
7d5c3bf70c Eh don’t provide the index after all. 2015-11-05 17:00:39 -05:00
Rob Rix
21ab49a97b Allow replacements. 2015-11-05 16:56:18 -05:00