Best practice for bookmarking items

I want to have bookmark or favorite items in my app, for doing it one approach is adding selected list items to an array when user taps star icon of item, and removing it when he taps star icon again from array.
But it seems not good idea, because it’s time complexity and also saving it in local storage.
Pleas suggest me your best practice solutions for adding favorite items to app favorite page with their links.
Please not that each item has it’s own page and when user favorite it, he can so item name in favorites page and by tapping it he can see item page.
Thanks.

interesting question @tah_206207, did you find a solution to it ?
thanks,

Hello All,

Any solution for the problem mentioned by tah_206207 ?

Thanks,
Rakesh KB