Document TextView optimizations

This commit is contained in:
Trevor Slocum 2020-10-06 13:55:51 -07:00
parent 741bac61c6
commit 4cbfd55a8e
2 changed files with 11 additions and 2 deletions

View File

@ -2,6 +2,7 @@ v1.5.1 (WIP)
- Store TextView buffer as [][]byte instead of []string
- Add TextView.SetBytes and TextView.GetBytes
- Allow modification of scroll bar render text
- Optimize TextView (writing is 90% faster, drawing is 50% faster)
v1.5.0 (2020-10-03)
- Add scroll bar to TextView

12
FORK.md
View File

@ -45,11 +45,19 @@ to enable background transparency.
## Tables are sorted when a fixed row is clicked by default
Call [Table.SetSortClicked] to disable this behavior.
Call [Table.SetSortClicked](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#Table.SetSortClicked)
to disable this behavior.
## Lists and Forms do not wrap around by default
Call [List.SetWrapAround](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#List.SetWrapAround) to wrap around when navigating.
Call [List.SetWrapAround](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#List.SetWrapAround)
to wrap around when navigating.
## TextViews store their text as []byte instead of string
This greatly improves buffer efficiency. [TextView.Write](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#TextView.Write)
is 90% faster and [TextView.Draw](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#TextView.Draw)
is 50% faster.
# Merged pull requests