Skip to content

Commit 11f396f

Browse files
committed
fix: update plugify
1 parent e6545a6 commit 11f396f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

external/plugify

Submodule plugify updated 106 files

src/module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1985,7 +1985,7 @@ namespace py3lm {
19851985

19861986
struct ArgsScope {
19871987
Parameters params;
1988-
std::vector<std::pair<void*, ValueType>> storage; // used to store array temp memory
1988+
std::inplace_vector<std::pair<void*, ValueType>, Signature::kMaxFuncArgs> storage; // used to store array temp memory
19891989

19901990
explicit ArgsScope(size_t size) : params(size) {
19911991
storage.reserve(size);

src/module.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ namespace py3lm {
103103
using PythonInternalMap = std::unordered_map<PyObject*, void*>;
104104
using PythonExternalMap = std::unordered_map<void*, PyObject*>;
105105
using PythonTypeMap = std::unordered_map<PyTypeObject*, PythonType>;
106-
using PythonEnumMap = std::map<int64_t, PyObject*>;
106+
using PythonEnumMap = std::flat_map<int64_t, PyObject*>;
107107
using PythonExternalEnumMap = std::unordered_map<const EnumObject*, std::shared_ptr<PythonEnumMap>>;
108108
using PythonInternalEnumMap = std::unordered_map<PyObject*, std::shared_ptr<PythonEnumMap>>;
109109

@@ -169,7 +169,7 @@ namespace py3lm {
169169
PyObject* start = nullptr;
170170
PyObject* end = nullptr;
171171
};
172-
std::unordered_map<UniqueId, PluginData> _pluginsMap;
172+
std::map<UniqueId, PluginData> _pluginsMap;
173173
std::vector<PythonMethodData> _pythonMethods;
174174
PyObject* _PluginTypeObject = nullptr;
175175
PyObject* _PluginInfoTypeObject = nullptr;

0 commit comments

Comments
 (0)