We focus our attention on enhancing of computation performance at numerical simulation of a laser pulse interaction with inhomogeneous nonlinear medium (optical periodic structure or photonic crystal) which is described in the framework of 1D Schrödinger equation without using slowly varying envelope in spatial coordinate. It allows taking into account the optical pulse reflection from medium inhomogeneous. In practice, as a rule at computer simulation the domain size before photonic crystal is many times greater than the photonic crystal size. Decreasing this domain one can essentially increase a computation performance. This aim is achieved by re-statement of the problem: instead of initial distribution of complex amplitude along spatial coordinate before the photonic crystal we consider its specifying as a boundary condition (BC), which results in the pulse propagation in both directions of the propagation axis. Taking this into account and that a part of a laser pulse reflects from faces of photonic crystal layers, we use the artificial boundary conditions (ABCs). To avoid an influence of waves propagated in negative direction of spatial coordinate on the laser pulse interaction in photonic crystal (this influence appears due to imperfection of ABC). We introduce in consideration some number of artificial waves related with the equation under consideration. With this aim, firstly, we provide a computation of the laser pulse propagation in a linear medium and storage the complex amplitude values at chosen section of a coordinate, along which a laser light propagates. Then we use this complex amplitude values as a left boundary condition for 1D nonlinear Schrödinger equation in domain containing a nonlinear photonic crystal. To decrease amplitude of the wave reflected from artificial boundaries. We demonstrate also that instead of a complex amplitude values storage one can use the corresponding analytical expression for the linear Schrödinger equation solution, corresponding to a laser pulse propagation in a linear domain before the photonic crystal. We discuss also various ways for full transform of the optical pulse energy for reflected wave into artificial waves. This results essentially increasing of computation efficiency.