Collision complexity

I'm writing a tile engine for a small game and I was just going to define a set of simple collision shapes to go along with each tile set. That way I can just lay out the levels in tiles and let the game build the level geometry off of that tile set. I imagine for single screen scenes this would be alright. But I also want to be able to use this level format for other larger scrolling levels down the road and I imagine the complexity of the level geometry will grow unwieldy as the level size grows.

I was thinking about creating a pre-processing step where this large set of small tile-sized shapes could be merged into larger, simpler shapes to simplify the scene. But then I wondered if it wouldn't just be better to leave the shapes as they are. Does Box2D have a space partitioning system in place that would easily rule out most of those shapes? Would it just be better to leave them alone or should I indeed consider merging and having as few shapes as possible?

Thanks
Box2D does have a spatial partitioning system, so unless you have a very large number of shapes I don't think you'll have a problem performance-wise (unless you're developing on a platform with limited resources, perhaps).

I know some people have had objects get hung up when moving over multiple shapes that are flush with one another (e.g. square obstacles in a tile-based environment, adjacent platforms in a side-scroller, etc.). If you end up encountering this behavior and find it to be a problem, merging of multiple shapes would be one way to solve it. If you're just worried about performance though, I wouldn't worry about it unless you actually run into performance-related problems (and can attribute them to Box2D).
Thanks for your reply. Good point about the hangs up on adjacent objects. Actually this gives me a good idea how to go about merging the shapes. As this will be primarily for platforming games my main interactions will be along the floors so I can just go ahead and merge all possible shapes along each row and not really worry about vertical merging. That would be pretty simple to do.
Wouldn't it be even worse if they could hang on a wall?

Original thread: https://box2d.org/forum/viewtopic.php?t=4665