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

[LORO-345] Reduce WASM size by reduce the use of generic in rich text #208

Open
zxch3n opened this issue Dec 4, 2023 · 0 comments
Open
Assignees
Labels
Milestone

Comments

@zxch3n
Copy link
Member

zxch3n commented Dec 4, 2023

Avoid the usage like this:

        let (c, entity_index) = match pos_type {
            PosType::Bytes => todo!(),
            PosType::Unicode => self.find_best_insert_pos::<UnicodeQueryT>(pos),
            PosType::Utf16 => self.find_best_insert_pos::<Utf16QueryT>(pos),
            PosType::Entity => self.find_best_insert_pos::<EntityQueryT>(pos),
            PosType::Event => self.find_best_insert_pos::<EventIndexQueryT>(pos),
        };

From SyncLinear.com | LORO-345

@zxch3n zxch3n added the refactor label Dec 4, 2023
@zxch3n zxch3n added this to the v.26 milestone Dec 17, 2023
@zxch3n zxch3n self-assigned this Dec 18, 2023
@zxch3n zxch3n modified the milestones: v.26, v.27 Dec 31, 2023
@zxch3n zxch3n modified the milestones: v.27, v.28 Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant