Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: ua-parser/uap-python

1.0.1: global parser is re-created on every access (/ parse)

01 Feb 14:13

Choose a tag to compare

This led to the parser having to be re-created on every access, which is quite expensive for the re2 and regex-based parser and completely negates their purpose.

This can be worked around by using a from-import (as Python will do the memoizing in that case, although every such from-import would create its own parser still)

from ua_parser import parser

and only parsing through that parser (without using the top-level utilities), or by setting the global parser "by hand" e.g.

ua_parser.parser = ua_parser.parser

but obviously that requires knowing about the issue.

Major thanks to@Rafiot for the report.

Contributors

  • @Rafiot
Rafiot
Assets2
Loading

1.0 release

28 Nov 17:12

Choose a tag to compare

Update version to 1.0Hopefully I've not missed one hidden somewhere.Also update the development status because y not.Closes #234
Loading

1.0.0-alpha.2

26 Nov 19:09

Choose a tag to compare

1.0.0-alpha.2Pre-release
Pre-release

previous release had a bunch of broken urls (doc and pypi), this should hopefully fix them

Loading

[8]ページ先頭

©2009-2025 Movatter.jp