Skip to content

Commit b86a0ed

Browse files
committed
Expand mypyc module compilation to 36 modules
Add 22 more modules to mypyc compilation for better performance: Type system: - assert_name.py Language/parsing: - source.py, location.py, token_kind.py - directive_locations.py, print_string.py Utilities: - type_info.py Execution: - build_field_plan.py, types.py Error handling: - graphql_error.py, located_error.py Pyutils (hot paths): - path.py, is_awaitable.py, is_iterable.py - gather_with_cancel.py, async_reduce.py - ref_map.py, convert_case.py, suggestion_list.py Validation: - validate.py, validation_context.py All 36 modules compile successfully with mypyc.
1 parent ec5dfe1 commit b86a0ed

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

build_mypyc.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,51 @@
2424
# visitor.py - designed for subclassing
2525
# block_string.py - duck typing with lazy strings
2626
# type_comparators.py - type issues (list vs tuple)
27+
# incremental_graph.py - complex generics
2728
MYPYC_MODULES = [
29+
# Core sentinel for mypyc activation detection
2830
"graphql_mypyc/_sentinel.py",
31+
# Type system
2932
"graphql/type/scalars.py",
33+
"graphql/type/assert_name.py",
34+
# Language/parsing
3035
"graphql/language/lexer.py",
3136
"graphql/language/parser.py",
3237
"graphql/language/predicates.py",
3338
"graphql/language/character_classes.py",
39+
"graphql/language/source.py",
40+
"graphql/language/location.py",
41+
"graphql/language/token_kind.py",
42+
"graphql/language/directive_locations.py",
43+
"graphql/language/print_string.py",
44+
# Utilities
3445
"graphql/utilities/coerce_input_value.py",
3546
"graphql/utilities/value_from_ast.py",
3647
"graphql/utilities/ast_from_value.py",
3748
"graphql/utilities/type_from_ast.py",
49+
"graphql/utilities/type_info.py",
50+
# Execution
3851
"graphql/execution/collect_fields.py",
3952
"graphql/execution/values.py",
4053
"graphql/execution/execute_sync.py",
4154
"graphql/execution/async_helpers.py",
55+
"graphql/execution/build_field_plan.py",
56+
"graphql/execution/types.py",
57+
# Error handling
58+
"graphql/error/graphql_error.py",
59+
"graphql/error/located_error.py",
60+
# Pyutils - hot paths
61+
"graphql/pyutils/path.py",
62+
"graphql/pyutils/is_awaitable.py",
63+
"graphql/pyutils/is_iterable.py",
64+
"graphql/pyutils/gather_with_cancel.py",
65+
"graphql/pyutils/async_reduce.py",
66+
"graphql/pyutils/ref_map.py",
67+
"graphql/pyutils/convert_case.py",
68+
"graphql/pyutils/suggestion_list.py",
69+
# Validation
70+
"graphql/validation/validate.py",
71+
"graphql/validation/validation_context.py",
4272
]
4373

4474

0 commit comments

Comments
 (0)