1. A computer-implemented method for generating filters for one or more inputs to an input processor so that the input processor will not unnecessarily use computing resources to generate data structures for invalid inputs, the computer-implemented method being performed by one or more processors executing computer-executable instructions for the computer-implemented method, and the computer-implemented method comprising acts of: accessing with a compiler code that contains information inserted by a code authoring entity, said information comprising: logic that instantiates one or more target components, each target component providing services for responding to one or more valid inputs; routing information to the one or more target components; and identification information for one or more valid inputs for the one or more target components; based on the accessed code, the compiler constructing an input filter configured to support the one or more valid inputs by providing at runtime the routing information for one or more target components corresponding to one or more valid inputs identified from the identification information for the one or more valid inputs; and based on the accessed code, the compiler also constructing intermediate or binary code corresponding to the logic for one or more said target components corresponding to the one or more identified valid inputs.