REGR: to_dict(orient={"records", "split", "dict"}) slowdown
- [x] closes #42352
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry

Regression was due to each scalar value hitting `is_datetime_or_timedelta_dtype` -> `_is_dtype_type` where it falls most of the way through.

pls
run a lot of asvs

this is a very hot path and don't want to affect other things  > this is a very hot path and don't want to affect other things

EDIT: The function modified is `maybe_box_native` (added in #37648), and I can only find it hit in `to_dict` paths

`to_dict` asvs:
```
       before           after         ratio
     [87d78559]       [614a926a]
     <master>         <regr_to_dict_perf>
-        484±10ms          168±2ms     0.35  frame_methods.ToDict.time_to_dict_datetimelike('dict')
-         479±3ms          164±3ms     0.34  frame_methods.ToDict.time_to_dict_datetimelike('records')
-         465±4ms          159±9ms     0.34  frame_methods.ToDict.time_to_dict_datetimelike('split')
-         149±2ms         21.6±2ms     0.15  frame_methods.ToDict.time_to_dict_ints('records')
-         141±6ms       13.7±0.4ms     0.10  frame_methods.ToDict.time_to_dict_ints('dict')
-         135±6ms       12.9±0.4ms     0.10  frame_methods.ToDict.time_to_dict_ints('split')
``` no run all the asvs

or at the very least casting and construction ones  > no run all the asvs
> 
> or at the very least casting and construction ones

Sorry, please see comment above, just edited thanks @mzeitlin11  @meeseeksdev backport 1.3.x Something went wrong ... Please have  a look at my logs.