Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch list implementation to more effective one #7898

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
365b329
scripts: Add list log parser
ZyX-I Jan 23, 2018
6db77f7
scripts: Dump log as YAML
ZyX-I Jan 26, 2018
c9f8bdf
scripts: Actually do analyze statistics
ZyX-I Jan 27, 2018
7e8a30b
eval/typval: Switch list implementation to kvec_withinit_t(typval_T, 4)
ZyX-I Feb 1, 2018
3ff3f37
hashtab: Allow using HASHTAB_ITER for cycles which are being modified
ZyX-I Feb 5, 2018
1354aab
eval/typval: Refactor tv_clear() so that it does not use typval_encode
ZyX-I Feb 5, 2018
48f7b3f
eval: When clearing vimvars do clear dictionaries as well
ZyX-I Feb 10, 2018
42b7c56
eval/typval_encode: Use kv_drop in place of (void)kv_pop
ZyX-I Feb 11, 2018
78f2660
eval: Do not access list item after removing it
ZyX-I Feb 13, 2018
1240b81
eval/typval: Do not preallocate four list elements
ZyX-I Feb 15, 2018
5b04f0e
eval/typval: Also save capacity to log
ZyX-I Feb 15, 2018
f45e907
kvec: Do not double vec size when it is needed to insert one element
ZyX-I Feb 15, 2018
1fcb652
Revert "eval/typval: Do not preallocate four list elements"
ZyX-I Feb 15, 2018
c960519
benchmarks: Add some list benchmarks
ZyX-I Feb 15, 2018
6227ee9
eval: Refactor map/filter implementation
ZyX-I Feb 18, 2018
6affa6d
functests: Make output of print_snapshot wrap highlight attributes
ZyX-I Feb 18, 2018
743d0a2
functests: Dump unknown colors as hex strings
ZyX-I Feb 18, 2018
da6735a
build: Use more specific feature macros
ZyX-I Mar 4, 2018
452291c
Merge branch 'master' into list-reimplement
ZyX-I May 1, 2018
4d3c6da
oldtests: Make sure that targets order is correct
ZyX-I May 1, 2018
8752031
oldtests: Allow specifying timeout (in minutes) via env var
ZyX-I May 1, 2018
f449ec8
oldtests: Allow running old tests in parallel
ZyX-I May 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
functests: Dump unknown colors as hex strings
  • Loading branch information
ZyX-I committed Mar 4, 2018
commit 743d0a270fa33bcec35c73b30070f77068f74770
6 changes: 5 additions & 1 deletion test/functional/ui/screen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -622,11 +622,15 @@ end
function Screen:_pprint_attrs(attrs)
local items = {}
for f, v in pairs(attrs) do
local desc = tostring(v)
local desc
if f == "foreground" or f == "background" or f == "special" then
if Screen.colornames[v] ~= nil then
desc = "Screen.colors."..Screen.colornames[v]
else
desc = ('0x%06x'):format(v)
end
else
desc = tostring(v)
end
table.insert(items, f.." = "..desc)
end
Expand Down