Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: devfeel/mapper
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: devfeel/mapper
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: aicode
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 5 files changed
  • 1 contributor

Commits on Mar 12, 2026

  1. feat: add field mapping cache for performance optimization

    - Add fieldCache to store pre-computed field index mappings
    - Implement computeFieldMappingCache() to cache src->dest field indices
    - Add getFieldMapping() for fast cache lookup
    - Add getFieldNameByType() and CheckExistsFieldByType() helpers
    - Add copyFieldValue() with type conversion support
    - Keep original implementation as fallback for complex cases
    
    Performance improvement:
    - Mapper: ~19% faster (1759ns -> 1420ns)
    - MapperSlice: ~12% faster (26828ns -> 23600ns)
    
    Add example tests:
    - example/benchmark/ - performance benchmarks
    - example/function_test/ - functional tests
    root committed Mar 12, 2026
    Configuration menu
    Copy the full SHA
    36d1d4f View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2026

  1. feat: add parallel processing for slice mapping (threshold >= 1000)

    - Add parallelThreshold config for large slice mapping
    - Implement parallel MapDirectSlice, MapDirectPtrSlice, SafeMapDirectSlice
    - Fix WaitGroup initialization in safeMapDirectSliceParallel
    - Fix error message to support index > 9
    - Add field mapping pre-warm for MapDirectPtrSlice
    root committed Mar 13, 2026
    Configuration menu
    Copy the full SHA
    17e89d5 View commit details
    Browse the repository at this point in the history
Loading