Skip to content

Make token computations more efficient #234

@lw

Description

@lw

At the moment the Contest._tokens_available method takes O(len(token_timestamps)) time to produce the result. Even if that list is usually quite short (maximum 20 elements in all the competitions I know about), the method is called every time the submission details page is rendered and therefore it may make sense to cache the result, to avoid DoS attacks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions