Note: If you found deserialization being the bottleneck, you can use :class:`LMDBData` as the reader and run deserialization as a mapper in parallel.
(path, shuffle=True)
| 106 | |
| 107 | @staticmethod |
| 108 | def load(path, shuffle=True): |
| 109 | """ |
| 110 | Note: |
| 111 | If you found deserialization being the bottleneck, you can use :class:`LMDBData` as the reader |
| 112 | and run deserialization as a mapper in parallel. |
| 113 | """ |
| 114 | df = LMDBData(path, shuffle=shuffle) |
| 115 | return MapData(df, LMDBSerializer._deserialize_lmdb) |
| 116 | |
| 117 | @staticmethod |
| 118 | def _deserialize_lmdb(dp): |