metaopt / optree

OpTree: Optimized PyTree Utilities
https://optree.readthedocs.io
Apache License 2.0
146 stars 7 forks source link

[Feature Request] Remove dependence on `abseil-cpp` #84

Closed XuehaiPan closed 1 year ago

XuehaiPan commented 1 year ago

Required prerequisites

Motivation

abseil-cpp is a collection of useful C++ utilities, that make our code well-organized and more readable. However, it poses some packaging challenges when we need to support various C++ compilers and their standard libraries (especially for conda-forge packages).

See also:

Current references:

$ grep -r -h -o -i -E 'absl::\w+|absl\w+' include src | sort | uniq
AbslHashValue
AbslHashValueImpl
absl::HashOf
absl::InlinedVector
absl::Span
absl::StrAppendFormat
absl::StrCat
absl::StrFormat
absl::StrJoin
absl::c_copy
absl::flat_hash_map
absl::flat_hash_set
absl::str_format

Solution

Remove the dependence on abseil-cpp and move to STL libraries.

Alternatives

No response

Additional context

No response