Skip to content
Discussion options

You must be logged in to vote

Following @LaurentInSeattle 's answer, I suddenly remembered that I'd been using ObservableCollection in ItemSource bindings, without considering other data formats. Then, on a whim, I asked Grok (an AI model) if it had any suggestions for better data formats. Grok suggested using AvaloniaList, a data format developed by Avalonia that offers better performance than ObservableCollection and natively supports methods like AddRange. I tested it, and with AvaloniaList, adding 50 items in a batch didn't cause any noticeable lag (though there was still a lag of around 100ms), which I find acceptable.

Replies: 5 comments 14 replies

Comment options

You must be logged in to vote
2 replies
@kyuranger
Comment options

@stevemonaco
Comment options

Comment options

You must be logged in to vote
7 replies
@thevortexcloud
Comment options

@kyuranger
Comment options

@kyuranger
Comment options

@kyuranger
Comment options

@kyuranger
Comment options

Comment options

You must be logged in to vote
1 reply
@stevemonaco
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@thevortexcloud
Comment options

@kyuranger
Comment options

@thevortexcloud
Comment options

@kyuranger
Comment options

Answer selected by kyuranger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants