Browse Source

Document TextView optimizations

tablepad
Trevor Slocum 2 years ago
parent
commit
4cbfd55a8e
  1. 1
      CHANGELOG
  2. 12
      FORK.md

1
CHANGELOG

@ -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

@ -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

Loading…
Cancel
Save