Skip to content

Split calls in gl_translate more effectively - not all or nothing? #80

Description

@LukasWallrich

Currently, it appears like gl_translate attempts to send everything in one call, and failing that, makes one call per vector element. In my use case, that results in 20,000 calls of 100 characters each, all with their own status message ... not ideal, and probably slower than a few larger calls.

Would it make sense to instead attempt to split the request into (e.g.) 2, then 4, then 8 buckets? Id' be happy to propose an alternative to the current line Reduce(rbind, lapply(t_string, gl_translate, format = format, target = target, source = source, model = model)) if something like that would seem useful?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions